<?php

use common\helpers\Html;
?>
<div class="weui-cell weui-cell_access weui-cell-middle">
    <div class="weui-cell__hd">
        <?php if ($model->user->avatar): ?>
            <?= Html::img($model->user->avatar, ['class' => 'weui-cell-media img-circle', 'lazy' => false], false) ?>
        <?php else: ?>
            <div class="weui-cell-media">
                <i class="fa fa-user-circle-o font-gray"></i>
            </div>
        <?php endif; ?>
    </div>
    <div class="weui-cell__bd">
        <h4 class="weui-media-box__title">
            <?= $model->user->username ?>
            <?php if ($model->user->member): ?>
                <i class="icon-star font-red"></i>
            <?php endif; ?>
        </h4>
        <p class="weui-media-box__desc" style="font-size: 80%;">加入时间: <?= date('Y/m/d', $model->created_at) ?></p>
    </div>
    <div class="weui-cell__ft pseudo-border-left no-arrow">
        下单数<br><?= $model->user->orderCount ?>
    </div>
</div>
